local icon = sc.color_icon
local test = class.text.create('',(1920-400)/2,840,400,30,12,5)

function test:update(frame)
    local player = ac.player.self
    local unit = ac.unit:localunit()
    local speed = unit and unit:get_data('优势速度')
    if speed then
        local attack = unit:get_data('优势输出')
        local damage = unit:get_data('优势伤害')
        self:set_text(('%s %s %s'):format(icon[speed], icon[attack], icon[damage]))
    else
        self:set_text('')
    end
end



ac.game:notify('游戏-注册显示UI',test)